﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__HUI__/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__HUIADMIN__/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__HUILIB__/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__HUIADMIN__/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__HUIADMIN__/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>建材列表</title>
<link rel="stylesheet" href="__HUILIB__/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
</head>
<body class="pos-r">
<!--<div class="pos-a" style="width:200px;left:0;top:0; bottom:0; height:100%; border-right:1px solid #e5e5e5; background-color:#f5f5f5; overflow:auto;">
	<ul id="treeDemo" class="ztree"></ul>
</div>style="margin-left:200px;"-->
<div >
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会议管理 <span class="c-gray en">&gt;</span> 会议列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="page-container">
<form method="post"  action="{:url('admin/Meet/searchMeet')}">
		<div class="text-c"> 日期范围：

			<input type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="logmin" class="input-text Wdate" style="width:120px;" name="mstarttime">
			-
			<input type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="logmax" class="input-text Wdate" style="width:120px;" name="mendtime">
			<input type="text"  id="" placeholder="会议标题" style="width:250px" class="input-text" name="mtitle">
			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索会议</button>

		</div>
</form>
		<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"><a href="javascript:;" onclick="datadel(this)" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> </span> <span class="r">共有数据：<strong>{$data.count}</strong> 条</span> </div>
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>

					<tr class="text-c">
						<th width="40"><input name="" type="checkbox" value=""></th>
						<th width="40">头像</th>
						<th width="60">管理员</th>
						<th width="100">会议标题</th>
						<th width="100">开始和结束时间</th>
						<th width="100">会议地址</th>
						<th width="100">会议设备</th>
						<th width="60">会议状态</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="data.meetData" id="vo"}
					<tr class="text-c va-m">
						<td><input name="mid" type="checkbox" value="{$vo.mid}"></td>
						<td><img width="60" class="product-thumb" src='{$vo.uphoto===""?"":$vo.uphoto}'></td>
						<td><a onClick="manager_show({url:('admin/User/usershow',['uid'=>$vo.uid])})" href="javascript:;">{$vo.uname}</a></td>
						<td class="text-l"><a style="text-decoration:none" onClick="meet_show({url:('admin/Meet/contentshow',['mid'=>$vo.mid])})" href="javascript:;">{$vo.mtitle}</a></td>
						<td class="text-l">{$vo.mstartime|date="Y-m-d H:i",###}------{$vo.mendtime|date="Y-m-d H:i",###}</td>
						<td><span class="price">{$vo.maddress}</span></td>
						<td><span>
							{if condition="($vo.wlanmac)"}
							{$vo.wlanmac}
							{elseif condition="($vo.bluetoothmac)"}
							{$vo.bluetoothmac}
							{/if}
						</span></td>
						<td class="td-status"><span class="label label-success radius">
							{if condition="($vo.mstartime > $data.currenttime)"}
							未开始
							{elseif condition="($vo.mendtime < $data.currenttime)"}
							已结束
							{else/}
							正进行
							{/if}
						</span></td>
						<td> <a title="删除" href="javascript:;" onclick="meet_del(this,'{$vo.mid}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</div>
	</div>
</div>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__HUILIB__/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__HUILIB__/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__HUI__/js/H-ui.min.js"></script>
<script type="text/javascript" src="__HUIADMIN__/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__HUILIB__/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="__HUILIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<!-- <script type="text/javascript" src="__HUILIB__/datatables/1.10.0/jquery.dataTables.min.js"></script> -->
<script type="text/javascript" src="__HUILIB__/laypage/1.2/laypage.js"></script>
<script type="text/javascript">


// $('.table-sort').dataTable({
// 	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
// 	"bStateSave": true,//状态保存
// 	"aoColumnDefs": [
// 	  {"orderable":false,"aTargets":[0,7]}// 制定列不参与排序
// 	]
// });


/*会议-删除*/
function meet_del(obj,id){
	var dataArr=[];
	dataArr.push(id);
	dataArr=JSON.stringify(dataArr);
 console.log(dataArr);
	layer.confirm('确认要删除吗？',function(index){
		$.ajax({
			type: 'POST',
			data:dataArr,
			url: '<?php echo url('admin/Meet/meetDelete')?>',
			dataType: 'text',
			success: function(data){
				$(obj).parents("tr").remove();
				layer.msg('已删除!',{icon:1,time:1000});
			},
			error:function(data) {
				layer.msg(data,{icon:1,time:1000});
			},
		});
	});
}
function datadel(obj){
	var dataArr=[];
	var objArr=[];
	$('input:checkbox[name=mid]:checked').each(function(i){
		objArr.push($(this));
		dataArr.push($(this).val());
	})

	dataArr=JSON.stringify(dataArr);

	layer.confirm('确认要删除这些吗？',function(index){
		$.ajax({
			type: 'post',
			url: '<?php echo url('admin/Meet/meetDelete');?>',
			dataType:'text',
			data:dataArr,
			success: function(data){
				for(var i=0;i<objArr.length;i++)
				$(objArr[i]).parents("tr").remove();
				layer.msg(data,{icon:1,time:1000});
			},
			error:function(data) {
				layer.msg(data,{icon:1,time:1000});

			},
		});
	});
}
</script>
</body>
</html>
